package net.kts.attraction.subway.adapter;

import java.util.List;

import net.kts.main.R;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;

public class AttractionUserSelectAdapter extends ArrayAdapter<String> {

	public AttractionUserSelectAdapter(Context context, int textViewResourceId,
			List<String> objects) {
		super(context, textViewResourceId, objects);
		// TODO Auto-generated constructor stub
	}

	@Override
	public View getView(int position, View convertView, ViewGroup parent) {
		// TODO Auto-generated method stub
		
		View v = convertView;
		
		 if (v == null) {
	            LayoutInflater vi = (LayoutInflater)getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
	            v = vi.inflate(R.layout.attraction_userselect_row, null);
	        }
		
		String str = getItem(position);
		
		TextView titleTextView = (TextView) v.findViewById(R.id.userSelect_title);
		
		titleTextView.setText(str);
		
			
		
		 
		 return v;
	}
	
	

}
